package com.example.demo.repository;

import com.example.demo.entity.WebSite;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.util.List;

@CrossOrigin("*")
@RepositoryRestResource(collectionResourceRel = "webSite",path = "webSite")
public interface WebSiteRepository extends JpaRepository<WebSite,String>{
    List<WebSite> findAllByEnabledFlagTrueOrderByDisplayOrderDesc();
}
